<?php
class Model_Option extends Zend_Db_Table_Abstract{
	protected $_name='options';
	public function fetchOption($option_name){
		$select=$this->select();
		$select->where('name=?',$option_name);
		$row=$this->fetchRow($select);
		return $row;
	}
	public function updateOption($option_name,$value){
		$row=$this->fetchOption($option_name);
		if($row){
			$row->value=$value;
			return $row->save();
		}else{
			return false;
		}
	}
}
?>